// 引入路由   用懒加载的方式
// const Home = () => import('@/pages/Home')
const Home = () => import("@/pages/home.vue");
const Login = () => import("@/pages/login.vue");
const Hellow = () => import("@/pages/home-content");
// 会员页面
const Member = () => import("@/pages/member");
const Account = () => import("@/pages/member/account");
// 项目
const ProjectSort = () => import("@/pages/Project/projectSort");
const Project = () => import("@/pages/Project/project");
const Packages = () => import("@/pages/Project/packages");
const Registration = () => import("@/pages/Project/registration");

//预约页面
const Reservation = () => import("@/pages/reservation")
const Appointreport = () => import("@/pages/reservation/appointreport")
const Today = () => import("@/pages/reservation//today/today")
const Accounttype =()=>import("@/pages/member/accounttype")
const AccountPoint=()=>import("@/pages/member/accountPoint")
const AccountSuit =()=>import("@/pages/member/accountsuit")
const Detail = () => import("@/pages/reservation/Detail/detail")


// 问诊界面
const Inquiry = ()=>import("@/pages/inquiry")
export default[
  {
    path: "/",
    component: Login,
  },
  {
    path: "/home",
    component: Home,
    children: [
      // 首页
      {
        path: "hellow",
        component: Hellow,
      },
      // 会员界面
      {
        path: "member",
        component: Member,
        children: [
          {
            path: "account",
            component: Account,
          },
          {
            path: "accounttype",
            component: Accounttype,
          },
          {
            path: "accountpoint",
            component: AccountPoint,
          },
          {
            path: "accountsuit",
            component: AccountSuit,
          },
          {
            path: "",
            redirect: "account",
          },
        ],
      },
      // 重定向
      {
        path: "",
        redirect: "hellow",
      },
      // 项目
      {
        path: "projectSort",
        component: ProjectSort,
        children: [
          {
            path:'/',
            component:Project
          },
          {
            path: "packages",
            component: Packages,
          },
          {
            path: "registration",
            component: Registration,
          },
          {
            path: "",
            redirect: "project",
          },
        ],
      },
      {
      // resrvation
        path: "reservation",
        component: Reservation,
        children: [
          {
            path: "appointreport",
            component: Appointreport,
          },
          {
            path:'detail',
            component:Detail
          },
          {
            path: 'today',
            component: Today,
            
          },
          {
            path: '/',
            redirect: 'today'
          }
        ]
      },
      // 问诊界面
      {
        path:'inquiry',
        component: Inquiry
      }
    
    ]
  }
]
